<div class="col-sm-10 col-md-9 col-lg-7">
    <form class="form-horizontal" role="form" action="{:U('Article/update')}" method="POST">
        <div class="form-group">
            <label for="name">文章标识</label>
            <input type="text" class="form-control" id="name" name="name" value="<if condition="isset($info['name'])">{$info.name}</if>">
        </div>
        <div class="form-group">
            <label for="title">文章标题</label>
            <input type="text" class="form-control" id="title" name="title" value="<if condition="isset($info['title'])">{$info.title}</if>">
        </div>


        <div class="form-group">
            <label for="content">文章内容</label>
            <!-- 加载编辑器的容器 -->
            <script id="content" name="content" type="text/plain">
                {$info.content}
            </script>
            <!-- 配置文件 -->
            <script type="text/javascript" src="__STATIC__/ueditor-1-4-3-3/ueditor.config.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" src="__STATIC__/ueditor-1-4-3-3/ueditor.all.js"></script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
                var ue = UE.getEditor('content', {
                            toolbars: [
                                ['fullscreen', 'source', 'undo','redo','fontsize',  'bold', 'italic', 'underline', 'fontborder', 'strikethrough','backcolor','forecolor','justifyleft', 'justifyright', 'justifycenter', 'justifyjustify',  'removeformat','simpleupload','link','unlink']
                            ],
                            autoFloatEnabled: true
                        }
                );
            </script>        </div>
        <div class="form-group">
            <label for="desc">说明</label>
            <textarea class="form-control" id="desc" name="desc" rows="5"><if condition="isset($info['desc'])">{$info.desc}</if></textarea>
        </div>
        <div class="hidden">
            <input name="id" value="<if condition="$info['id'] gt 0">{$info.id}</if>">
        </div>

        <button type="submit" class="btn btn-default">提交</button>
    </form>
</div>